package paper.domain;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.OneToOne;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;

import org.hibernate.validator.constraints.NotEmpty;

import keter.domain.base.BaseEntity;

/**
 * <p>Class       : paper.domain.PaperArchive
 * <p>Descdription: 论文归档信息
 *
 * @author  gulixing@msn.com
 * @version 1.0.0
 */
@Entity
@Table(name = "paper_archive")
public class PaperArchive extends BaseEntity{
	
	// 关联主键
//    private Paper paper;
//    @OneToOne(cascade = CascadeType.ALL)
//    @PrimaryKeyJoinColumn
//    public Paper getPaper() {
//        return paper;
//    }
//    public void setPaper(Paper paper) {
//        this.paper = paper;
//    }
	
	private Long paperId;
    private String name;
    private String accsoryFileId;

    public String getAccsoryFileId() {
		return accsoryFileId;
	}
	public void setAccsoryFileId(String accsoryFileId) {
		this.accsoryFileId = accsoryFileId;
	}
	@Column(name="paper_name")
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	//作者名称
	private String creatorName;
	//导师名称
	private String masterName;
	
	//组织机构代码
	//学院代码:4位
	private String collegeCode;  
	//专业代码：6位
	private String majorCode; 
	//班级代码:8位
	private String classCode;
	
	
	//组织机构名称:防止因修改导致内容失效
	//学院名称
	private String collegeName;
	//专业名称
	private String majorName;
	//班级名称
	private String className;
	
	
	@Column(name="paper_id")
   	public Long getPaperId() {
		return paperId;
	}
	public void setPaperId(Long paperId) {
		this.paperId = paperId;
	}
	
	
	public String getCreatorName() {
		return creatorName;
	}
	public void setCreatorName(String creatorName) {
		this.creatorName = creatorName;
	}
	public String getMasterName() {
		return masterName;
	}
	public void setMasterName(String masterName) {
		this.masterName = masterName;
	}
	@Column(name="college_code") 
	public String getCollegeCode() {
		return collegeCode;
	}
	public void setCollegeCode(String collegeCode) {
		this.collegeCode = collegeCode;
	}
	@Column(name="major_code")
	public String getMajorCode() {
		return majorCode;
	}
	public void setMajorCode(String majorCode) {
		this.majorCode = majorCode;
	}
	@Column(name="class_code")
	public String getClassCode() {
		return classCode;
	}
	public void setClassCode(String classCode) {
		this.classCode = classCode;
	}
	@Column(name="college_name")
	public String getCollegeName() {
		return collegeName;
	}
	public void setCollegeName(String colledgeName) {
		this.collegeName = colledgeName;
	}
	@Column(name="major_name")
	public String getMajorName() {
		return majorName;
	}
	public void setMajorName(String majorName) {
		this.majorName = majorName;
	}
	@Column(name="class_name")
	public String getClassName() {
		return className;
	}
	public void setClassName(String className) {
		this.className = className;
	}
}
